package softwaredepartment.zxit.com.pt_3280cinandroid.Utils;

/**
 * Created by JohnsonChow on 16/11/18.
 */

public class MilliSecondDurtion2TimeFormat {

    public static String Ms2TimeStringFormat(int currentPosition){
//        %1000 ＝毫秒
//        /1000％60＝秒
//        /1000/60＝分钟

        String min ="00";
        String sec ="00";
        if((currentPosition/1000/60)<10){
            min = "0"+(currentPosition/1000/60);
        }else{
            min = (currentPosition/1000/60)+"";
        }
        if((currentPosition/1000%60)<10){
            sec = "0"+(currentPosition/1000%60);
        }else{
            sec = (currentPosition/1000%60)+"";
        }
        return min+":"+sec;
    }
}
